﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace USTF.Media.MediaService
{
    [ServiceContract]
    public interface IUSTFMediaService
    {
        [OperationContract]
        IEnumerable<MediaItem> GetMediaItems(int parentId);

        [OperationContract]
        bool Delete(int id);

        [OperationContract]
        int Create(MediaItem item);

        [OperationContract]
        byte[] GetData(MediaItem item, string contentsInstance);

        [OperationContract]
        void SaveData(MediaItem item, string contentsInstance, byte[] contents);
    }
}
